﻿namespace Lanbt.Core.Entity.EntityDB.QuartzTable
{
    /// <summary>
    /// 存放一个jobDetail信息。
    /// </summary>
    public class LANBT_JOB_DETAILS
    {
        /// <summary>
        /// 调度器名称
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable =false,ColumnDescription = "调度器名称")]
        public string SCHED_NAME { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "任务名称")]
        public string JOB_NAME { get; set; }

        /// <summary>
        /// 任务群组
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "任务群组")]
        public string JOB_GROUP { get; set; }

        /// <summary>
        /// 说明
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDescription = "说明")]
        public string? DESCRIPTION { get; set; }

        /// <summary>
        /// 任务class全路径
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "任务class全路径")]
        public string JOB_CLASS_NAME { get; set; }

        /// <summary>
        /// 是否可持久
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "是否可持久")]
        public bool IS_DURABLE { get; set; }

        /// <summary>
        /// 是否当前
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "是否当前")]
        public bool IS_NONCONCURRENT { get; set; }

        /// <summary>
        /// 是否更新数据
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "是否更新数据")]
        public bool IS_UPDATE_DATA { get; set; }

        /// <summary>
        /// 请求恢复
        /// </summary>
        [SqlSugar.SugarColumn(IsNullable = false, ColumnDescription = "请求恢复")]
        public bool REQUESTS_RECOVERY { get; set; }

        /// <summary>
        /// 任务数据
        /// </summary>
        [SqlSugar.SugarColumn(ColumnDataType = "varbinary(max)",Length = 0, ColumnDescription = "任务数据")]
        public byte[]? JOB_DATA { get; set; }
    }
}
